home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16146 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 KB

  1. Path: news.infi.net!usenet
  2. From: gcfiorine@hamlet.uncg.edu (glenn)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Help - ERROR: Use C++ with iostream.h - ???
  5. Date: Tue, 09 Apr 1996 19:31:18 GMT
  6. Organization: InfiNet
  7. Message-ID: <4kedrk$fv@nw002.infi.net>
  8. References: <31671633.33DD@inforamp.net> <N.040896.100149.11@ix.netcom.com> <milodDpK638.23E@netcom.com>
  9. NNTP-Posting-Host: pa3dsp18.nr.infi.net
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. I used to have the same problem with my school programs. The problem
  13. might be in the setup of the program. I don't know what compiler you
  14. are using, but you need to specify where your lib files and include
  15. files reside in your computer. If you are running a project from the
  16. school computer, it could be in a different directory.
  17. Glenn
  18. milod@netcom.com (John DiCamillo) wrote:
  19.  
  20. >>> When I run a program I brought from schoo, that is properly formatted and
  21. >>> runs on the UNIX/PowerPC system there, I get an error like "Use C++ with
  22. >>> iostream.h". I even renamed the first character in the header file from 
  23. >>> an upper case "I" to a lower case "i". Any ideas?
  24.  
  25. >It probably means that your C++ compiler "thinks" its
  26. >compiling a C program, not a C++ program.  Some compilers
  27. >are picky about the filename extensions:
  28.  
  29. >  use *.cpp for C++ source files
  30. >  use *.hpp for C++ header files
  31.  
  32. >Note: I'm not saying that files "should" be named a
  33. >certain way, only that some compilers may insist on it.
  34.  
  35. >Also, there is usually a compiler setting to force the
  36. >compiler to treat all input files as either C or C++
  37. >source code.  Try the help system to find the appropriate
  38. >incantation.
  39.  
  40. >-- 
  41. >    ciao,
  42. >    milo
  43. >================================================================
  44. >    John DiCamillo                         Fiery the Angels Fell 
  45. >    milod@netcom.com       Deep thunder rode around their shores
  46.  
  47.  
  48.